const BigNumber = require('bignumber.js');
const moment = require('moment');
const { think } = require('thinkjs');

module.exports = class extends think.Model {
  async save(obj) {
    const has = await this.model('process')
      .where({ orderToken: obj.orderToken })
      .find();
    if (think.isEmpty(has)) {
      // await this.model('process')
      //   .where({
      //     orderToken: obj.orderToken,
      //   })
      //   .update({
      //     score: obj.score,
      //     summary_txt: obj.summaryText.sprintf,
      //     summary_tag: obj.summaryText.variables.join(','),
      //   });
    }
  }
};
